<!doctype html>
<html>

<head>
<meta charset="UTF-8">
<title>主页</title>
<style>
/*页头部分 勿改*/
/*设置div背景色为white*/
/*以下部分和页脚部分统一*/
html {
	height: 100%;
	margin: 0;
}

body {
	height: 100%;
	margin: 0;
	background-color: #f9f9f9;
}

a {
	text-decoration: none
}

.banner {
	z-index: 99999;
	width: 100%;
	height: 70px;
	top: 0;
	left: 0;
	position: fixed;
	overflow: hidden;
	background: #fff;
	border-bottom: 1px solid rgba(30, 35, 42, .06);
	box-shadow: 0 1px 3px 0 rgba(0, 34, 77, .05);
	background-clip: content-box;
	filter: alpha(Opacity = 50);
	opacity: 0.95;
}

#logo {
	margin-top: 11px;
	margin-left: 42px;
	width: 115px;
	height: 46px;
}

.searchDiv {
	position: absolute;
	top: 15px;
	left: 182px;
	height: 35px;
	width: 224px;
	-webkit-border-radius: 3px;
	-webkit-appearance: none;
	border-radius: 3px;
	border: 1px solid #999999;
}

#search {
	float: left;
	margin-top: 1.4px;
	width: 185px;
	height: 30px;
	border: 0;
	background-color: transparent;
	font: 13px 微软雅黑;
}

#btnLeft {
	margin-left: 30px;
	width: 255px;
	position: absolute;
	right: 12.6%;
	top: 20px;
}

#searchicon {
	float: right;
	margin-top: 3.5px;
	width: 28px;
	height: 28px;
}

/*页脚*/
footer {
	position: relative;
	bottom: 0;
	width: 100%;
	height: 60px;
	clear: both;
	padding-top: 20px;
	padding-bottom: 0;
}

#footer {
	text-align: center;
	background-color: white;
	height: 40px;
	width: 100%;
	margin-top: 20px;
	overflow: hidden;
	box-shadow: 0 1px 3px 0 rgba(0, 34, 77, .05);
	background-clip: content-box;
}

#footText {
	height: 20px;
	margin: 5px auto;
}

/*主界面*/
.main {
	margin: 90px auto;
	width: 1076px;
	height: auto;
}
/*左侧按钮及帖子浏览部分*/
.left {
	float: left;
	margin-top: 20px;
	width: 740px;
	height: auto;
}

.list {
	margin-left: 0;
	margin-top: 0;
	width: 140px;
	height: 160px;
}

#recommend, #equity, #block3, #block4 {
	width: 100%;
	height: 40px;
	-webkit-border-radius: 3px;
	-webkit-appearance: none;
	border-radius: 3px;
	border: 1px solid #999999;
	background-color: white;
	font: normal 15px 微软雅黑;
	color: #666666;
}

#passageArea {
	margin-top: -160px;
	margin-left: 142px;
	width: 600px;
	height: auto;
}
/*右侧用户信息样式*/
.right {
	float: right;
	margin-top: 20px;
	width: 320px;
	height: 440px;
	background: white;
}

.personBlock {
	width: 320px;
	height: 440px;
	border: 1px solid #999999;
	border-radius: 3px;
	text-align: center;
}

#avatar {
	border: 5px solid aliceblue;
	border-radius: 50%;
	width: 120px;
	height: 120px;
}

#avatarDiv {
	margin-top: 40px;
	text-align: center;
}

.personFont {
	font: normal 18px 微软雅黑;
}

#post {
	text-align: center;
	margin-top: 50px;
	width: 120px;
	height: 40px;
	border: 1px solid #999999;
	border-radius: 3px;
	background-color: white;
	font: 15px 微软雅黑;
	color: #666666;
}

.whole-container {
	min-height: 100%;
}

a {
	text-decoration: none
}

a:link {
	color: black;
}

a:visited {
	color: black;
}

.container {
	width: 600px;
	height: auto;
	border-radius: 3px;
	box-shadow: 0 0 2px #999999;
}

#userImage {
	margin-top: 20px;
	margin-left: 20px;
}

#userName {
	position: relative;
	top: -20px;
	left: 60px;
	font: normal 13px 微软雅黑;
}

.passage {
	margin-top: -20px;
	margin-left: 20px;
	width: 600px;
}

#passageName {
	position: relative;
	top: 18px;
	font: normal 18px 微软雅黑;
}

#date {
	position: relative;
	float: right;
	top: 10px;
	left: -45px;
	font: normal 13px 微软雅黑;
}

#passageMain {
	position: relative;
	top: 5px;
	word-wrap: break-word;
	word-break: normal;
	width: 560px;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	font: normal 15px 微软雅黑;
}

.media-box {
	position: relative;
	top: 0;
	width: 340px;
	height: 120px;
}

.image1, .image2, .image3 img {
	width: 110px;
	height: 110px;
	background: black;
}

.image1 {
	position: relative;
}

.image2 {
	position: relative;
	top: -110px;
	left: 113px;
}

.image3 {
	position: relative;
	top: -220px;
	left: 226px;
}

.demo {
	width: 580px;
	padding: 10px;
}

.btnCol {
	margin-top: 20px;
}

.collect {
	width: 80px;
	height: 30px;
	padding-left: 24px;
	font: 13px 微软雅黑;
	border-radius: 3px;
	border: 1px solid #bbbbbb;
	width: 80px;
	height: 30px;
	background: no-repeat;
	background-image: url("img/shoucang.png");
	background-size: 23px 23px;
	background-position: 8px 3px;
}

.zan {
	width: 80px;
	height: 30px;
	padding-left: 18px;
	font: 13px 微软雅黑;
	border-radius: 3px;
	border: 1px solid #bbbbbb;
	width: 80px;
	height: 30px;
	background: no-repeat;
	background-image: url("img/点赞 .png");
	background-size: 22px 22px;
	background-position: 8px 2px;
}

.zanNum {
	font: 13px 微软雅黑;
	border-radius: 3px;
	border: 1px solid #bbbbbb;
	width: 80px;
	height: 30px;
	background-color: white;
}

#settingIcon {
	background-image: url("img/设置.png");
	background-size: 25px 25px;
	margin-top: 5px;
	float: right;
	width: 25px;
	height: 25px;
}

#settingIcon:hover {
	background-image: url("img/设置focus.png");
}

#settingList {
	background: no-repeat;
	background-image: url("img/下拉框.png");
	background-size: 155px 120px;
	filter: alpha(Opacity = 50);
	opacity: 0.95;
	position: fixed;
	top: 40px;
	right: 11.8%;
	overflow: hidden;
	z-index: 99999;
	width: 155px;
	height: 120px;
	display: none;
}

#accountSetting, #changePersonalSetting, #logout {
	list-style: none;
	font: 13px 微软雅黑;
}

#accountSetting:hover, #changePersonalSetting:hover, #logout:hover {
	font: 13px 微软雅黑;
}

#accountSetting {
	margin-top: 10px;
}

#changePersonalSetting {
	margin-top: 35px;
}

#logout {
	margin-top: 10px;
}
</style>
<link rel="stylesheet" type="text/css" href="css/style.css"
	media="screen" />
<link rel="stylesheet" href="http://www.yyyweb.com/demo/common/init.css">
<link rel="stylesheet" type="text/css" href="css/common.css"
	media="screen" />


</head>
<body>

	<div class="whole-container">
		<!--页头部分-->
		<div class="banner">
			<img src="img/logologin.png" id="logo" />
			<div class="searchDiv">
				<input type="text" name="keyword" id="search"
					placeholder=" 请输入您要搜索的关键字"> <a href="#" onclick="searchByKeyword()"><img
					src="img/搜索.png" id="searchicon" /></a>
			</div>
			<div id="btnLeft">
				<a onmouseover="showList()"><div id="settingIcon"></div></a> <a
					href="per_page.html"> <input type="button" name="homepage"
					id="hpBtn" value="个人中心">
				</a> <a href="home_page.html"><input type="button" name="homepage"
					id="ppBtn" value="首页"></a>
			</div>
		</div>

		<!--这里是设置的下拉表-->
		<div id="settingList">
			<ul style="padding-left: 10px">
				<li id="changePersonalSetting"><a href="edit_self.html">编辑个人资料</a>
				</li>
				<li id="accountSetting"><a href="change_pwd.html">更改密码</a></li>
				<li id="logout"><a href="javascript:void(0)" onclick="logout()">退出</a></li>
			</ul>
		</div>

		<!--主界面部分 固定宽度居中-->
		<div class="main">
			<!--左侧标签及浏览帖子部分-->
			<div class="left">
				<!--四个版块相应按钮-->
				<div class="list">
					<input type="button" id="recommend" value="吃"
						onclick="showAtRight(0,1)" style="cursor: pointer;"> <input
						type="button" id="equity" value="喝" onclick="showAtRight(1,1)"
						style="cursor: pointer"> <input type="button" id="block3"
						value="玩" onclick="showAtRight(2,1)" style="cursor: pointer">
					<input type="button" id="block4" value="乐"
						onclick="showAtRight(3,1)" style="cursor: pointer">
				</div>
				<!--下面的Div来浏览的帖子内容，id为passageArea-->
				<div id="passageArea">

					<div id="posts"></div>


					<div class="content">
						<div class="demo">
							<div id="page"></div>
						</div>

					</div>

				</div>
			</div>






			<!--右侧用户信息部分-->
			<div class="right">
				<div class="personBlock">
					<div id="avatarDiv">
						<img src="img/giggleIcon.png" id="avatar">
					</div>
					<div>
						<br>
						<t class="personFont" id="myUserName">用户名</t>
						<br> <br>
						<t class="personFont">粉丝：</t>
						<t class="personFont" id="fansNum">0</t>
						<br>
						<t class="personFont">关注：</t>
						<t class="personFont" id="followNum">0</t>
					</div>
					<input type="button" name="post" id="post" value="发帖子"
						onclick="location='publish.html'"><br>
				</div>
			</div>
		</div>


	</div>

	<div id="loader"
		style="position: absolute; width: 100px; height: 100px; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); -moz-transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%); -o-transform: translate(-50%, -50%); transform: translate(-50%, -50%);"></div>

	<!--页脚部分-->
	<footer>
		<div id="footer">
			<div id="footText">
				<img src="img/giggleIcon.png"
					style="width: 20px; height: 20px; margin-bottom: -6px"> <em
					style="font: 13px 微软雅黑; color: #999999;">giggle</em> <a
					href="https://www.baidu.com/"
					style="font: 13px 微软雅黑; color: #999999; margin-left: 15px">关于我们</a>
				<em style="font: 13px 微软雅黑; color: #999999; margin-left: 15px">©
					2018 issers 版权所有</em>
			</div>
		</div>
	</footer>
	<!--页脚部分结束-->
	<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
	<script src="js/jquery.shCircleLoader.js" type="text/javascript"></script>
	<script type="text/javascript" src="js/jquery.paginate.js"></script>
	<script type="text/javascript" src="js/common.js"></script>
	<script type="text/javascript" src="js/home_page.js"></script>
	<script src="http://www.yyyweb.com/demo/common/init.js"></script>

</body>
</html>
